it says NameError: name 'Doctor' is not defined when I try to execute